package com.music.service.twitter.service;

import org.springframework.beans.factory.annotation.Required;

import com.music.service.twitter.beans.TwitterServiceBean;
import com.music.service.twitter.dao.TwitterDAO;

public class TwitterServiceImpl implements TwitterService {

	private TwitterDAO mTwitterDAO;
	
	public void deleteTwitter(Long pMemberId) {
		getTwitterDAO().deleteTwitter(pMemberId);
	}

	public TwitterServiceBean getTwitter(Long pMemberId) {
		return getTwitterDAO().getTwitter(pMemberId);
	}

	public TwitterServiceBean insertTwitter(TwitterServiceBean pTwitter) {
		return getTwitterDAO().insertTwitter(pTwitter);
	}

	/**
	 * @return the twitterDAO
	 */
	public TwitterDAO getTwitterDAO() {
		return mTwitterDAO;
	}

	/**
	 * @param pTwitterDAO the twitterDAO to set
	 */
	@Required
	public void setTwitterDAO(TwitterDAO pTwitterDAO) {
		mTwitterDAO = pTwitterDAO;
	}

	
}
